﻿<%@ Page Language="C#" MasterPageFile="~/MasterPages/C3.Master" AutoEventWireup="true"
    CodeBehind="DrawCheque.aspx.cs" Inherits="EasyCheque.Cheque.DrawCheque" %>

<asp:Content ID="Content" ContentPlaceHolderID="ContentPlaceHolder_Content" runat="server">

    <script type="text/javascript">
        function show() {
            document.getElementById('ctl00_ctl00_RightContent_ContentPlaceHolder_Content_Panel_Calendar').style.display = '';
        }

        function hide() {
            document.getElementById('ctl00_ctl00_RightContent_ContentPlaceHolder_Content_Panel_Calendar').style.display = 'none';
        }
    </script>
       <div class="title_inner">

    开具电子支票

    </div>

    <asp:Table ID="Table_ChequeInfo" runat="server" CssClass="formtable">
        <asp:TableRow>
            <asp:TableCell CssClass="infoCellLabel">
                <asp:Label ID="Label2" runat="server" Text="开票账户"></asp:Label>
            </asp:TableCell>
            <asp:TableCell CssClass="infoCellValue">
                <asp:DropDownList ID="DropDownList_Account" runat="server" CssClass="infoDropDownList">
                </asp:DropDownList>
            </asp:TableCell>
            <asp:TableCell CssClass="infoUltraWidth">
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell CssClass="infoCellLabel">
                <asp:Label ID="Label_DateOfDraft" runat="server" Text="开票日期"></asp:Label>
            </asp:TableCell>
            <asp:TableCell CssClass="infoCellValue">
                <asp:TextBox ID="TextBox_DateOfDraft" runat="server" AutoPostBack="false" ReadOnly="True">
                </asp:TextBox>
            </asp:TableCell>
            <asp:TableCell CssClass="infoUltraWidth">
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell CssClass="infoCellLabel">
                <asp:Label ID="Label_DEADLINE" runat="server" Text="到期时间"></asp:Label>
            </asp:TableCell>
            <asp:TableCell CssClass="infoCellValue">
                <asp:TextBox ID="TextBox_DEADLINE" runat="server" onfocus="show()" onchanged="hide()">
                </asp:TextBox>
                <asp:Panel ID="Panel_Calendar" runat="server">
                    <asp:Calendar ID="Calendar_InPanel" runat="server" CssClass="csscalendar" OnSelectionChanged="Calendar_InPanel_SelectionChanged"
                        OnVisibleMonthChanged="Calendar_InPanel_VisibleMonthChanged" BackColor="White"
                        BorderColor="#3366CC" BorderWidth="1px" CellPadding="1" DayNameFormat="Shortest"
                        Font-Names="Verdana" Font-Size="8pt" ForeColor="#003399" Height="200px" Width="220px">
                        <SelectedDayStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
                        <SelectorStyle BackColor="#99CCCC" ForeColor="#336666" />
                        <WeekendDayStyle BackColor="#CCCCFF" />
                        <TodayDayStyle BackColor="#99CCCC" ForeColor="White" />
                        <OtherMonthDayStyle ForeColor="#999999" />
                        <NextPrevStyle Font-Size="8pt" ForeColor="#CCCCFF" />
                        <DayHeaderStyle BackColor="#99CCCC" ForeColor="#336666" Height="1px" />
                        <TitleStyle BackColor="#003399" BorderColor="#3366CC" BorderWidth="1px" Font-Bold="True"
                            Font-Size="10pt" ForeColor="#CCCCFF" Height="25px" />
                    </asp:Calendar>
                </asp:Panel>
            </asp:TableCell>
            <asp:TableCell>
                <asp:RequiredFieldValidator Display="Dynamic" ID="RequiredFieldValidator_DEADLINE" runat="server" ErrorMessage="到期时间不能为空。"
                    CssClass="tipwrong" ControlToValidate="TextBox_DEADLINE" ForeColor="#888888"></asp:RequiredFieldValidator>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell>
                <asp:Label ID="Label_Amount" runat="server" Text="金额（元）"></asp:Label>
            </asp:TableCell>
            <asp:TableCell>
                <asp:TextBox ID="TextBox_Amount" runat="server" AutoPostBack="false">
                </asp:TextBox>
                <asp:Label ID="Label5" runat="server" Text=" *" ForeColor="Red"></asp:Label>
            </asp:TableCell>
            <asp:TableCell>
                <asp:RequiredFieldValidator Display="Dynamic" ID="RequiredFieldValidator_Amount" runat="server" ErrorMessage="金额不能为空。"
                    CssClass="tipwrong" ControlToValidate="TextBox_Amount" ForeColor="#888888"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator Display="Dynamic" ID="RegularExpressionValidator_Amount" runat="server"
                    ErrorMessage="请输入正确的金额。" CssClass="tipwrong" ControlToValidate="TextBox_Amount"
                    ForeColor="#888888" ValidationExpression="^[1-9]\d{0,4}\.\d{0,2}$|^[1-9]\d{0,4}$"></asp:RegularExpressionValidator>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell>
                <asp:Label ID="Label_NeedPayPassword" runat="server" Text="需要收票密码"></asp:Label>
            </asp:TableCell>
            <asp:TableCell>
                <asp:CheckBox ID="CheckBox_NeedPayPassword" runat="server" OnCheckedChanged="CheckBox_NeedPayPassword_OnCheckedChanged"
                    AutoPostBack="true" />
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow ID="TableRow_PayPassword" Visible="False">
            <asp:TableCell>
                <asp:Label ID="Label_PayPassword" runat="server" Text="收票密码"></asp:Label>
            </asp:TableCell>
            <asp:TableCell>
                <asp:TextBox ID="TextBox_PayPassword" runat="server" AutoPostBack="false" TextMode="Password">
                </asp:TextBox>
                <asp:Label ID="Label8" runat="server" Text=" *" ForeColor="Red"></asp:Label>
            </asp:TableCell>
            <asp:TableCell>
                <asp:RequiredFieldValidator Display="Dynamic" ID="RequiredFieldValidator2" runat="server" ErrorMessage="收票密码不能为空。"
                    CssClass="tipwrong" ControlToValidate="TextBox_PayPassword" ForeColor="#888888"></asp:RequiredFieldValidator>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow ID="TableRow_PayPasswordConfirm" Visible="False">
            <asp:TableCell>
                <asp:Label ID="Label_PayPasswordConfirm" runat="server" Text="确认收票密码"></asp:Label>
            </asp:TableCell>
            <asp:TableCell>
                <asp:TextBox ID="TextBox_PayPasswordConfirm" runat="server" AutoPostBack="false"
                    TextMode="Password">
                </asp:TextBox>
                <asp:Label ID="Label3" runat="server" Text=" *" ForeColor="Red"></asp:Label>
            </asp:TableCell>
            <asp:TableCell>
                <asp:RequiredFieldValidator Display="Dynamic" ID="RequiredFieldValidator3" runat="server" ErrorMessage="确认收票密码不能为空。"
                    CssClass="tipwrong" ControlToValidate="TextBox_PayPasswordConfirm" ForeColor="#888888"></asp:RequiredFieldValidator>
                <asp:CompareValidator ID="CompareValidator1" runat="server" ErrorMessage="CompareValidator"
                    ControlToCompare="TextBox_PayPassword" ControlToValidate="TextBox_PayPasswordConfirm"></asp:CompareValidator>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell>
                <asp:Label ID="Label_BankersCheque" runat="server" Text="是否保付"></asp:Label>
            </asp:TableCell>
            <asp:TableCell>
                <asp:CheckBox ID="CheckBox_BankersCheque" runat="server" />
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell>
                <asp:Label ID="Label_OrderCheque" runat="server" Text="是否记名"></asp:Label>
            </asp:TableCell>
            <asp:TableCell>
                <asp:CheckBox ID="CheckBox_OrderCheque" runat="server" OnCheckedChanged="CheckBox_OrderCheque_OnCheckedChanged"
                    AutoPostBack="true" />
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow ID="TableRow_RemitteeAccount" Visible="False">
            <asp:TableCell>
                <asp:Label ID="Label_RemitteeAccount" runat="server" Text="收票账户" Visible="True"></asp:Label>
            </asp:TableCell>
            <asp:TableCell>
                <asp:TextBox ID="TextBox_RemitteeAccount" runat="server" AutoPostBack="false" Visible="True">
                </asp:TextBox>
                <asp:Label ID="Label4" runat="server" Text=" *" ForeColor="Red"></asp:Label>
            </asp:TableCell>
            <asp:TableCell>
                <asp:RequiredFieldValidator Display="Dynamic" ID="RequiredFieldValidator4" runat="server" ErrorMessage="收票账户不能为空。"
                    CssClass="tipwrong" ControlToValidate="TextBox_RemitteeAccount" ForeColor="#888888"></asp:RequiredFieldValidator>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell>
                <asp:Label ID="Label_Comment" runat="server" Text="用途"></asp:Label>
            </asp:TableCell>
            <asp:TableCell>
                <asp:TextBox ID="TextBox_Comment" runat="server" AutoPostBack="false" Height="60px"
                    TextMode="MultiLine">
                </asp:TextBox>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell>
                <asp:Label ID="Label1" runat="server" Text="证书文件"></asp:Label>
            </asp:TableCell>
            <asp:TableCell>
                <asp:FileUpload ID="FileUpload_cert" runat="server" />
                <asp:Label ID="Label6" runat="server" Text=" *" ForeColor="Red"></asp:Label>
            </asp:TableCell>
            <asp:TableCell>
                <asp:RequiredFieldValidator Display="Dynamic" ID="RequiredFieldValidator_cert" runat="server" ErrorMessage="证书不能为空。"
                    CssClass="tipwrong" ControlToValidate="FileUpload_cert" ForeColor="#888888"></asp:RequiredFieldValidator>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell>
                <asp:Label ID="Label_PASSWORD" runat="server" Text="登录密码"></asp:Label>
            </asp:TableCell>
            <asp:TableCell>
                <asp:TextBox ID="TextBox_PASSWORD" runat="server" AutoPostBack="false" TextMode="Password">
                </asp:TextBox>
                <asp:Label ID="Label7" runat="server" Text=" *" ForeColor="Red"></asp:Label>
            </asp:TableCell>
            <asp:TableCell>
                <asp:RequiredFieldValidator Display="Dynamic" ID="RequiredFieldValidator1" runat="server" ErrorMessage="登录密码不能为空。"
                    CssClass="tipwrong" ControlToValidate="TextBox_PASSWORD" ForeColor="#888888"></asp:RequiredFieldValidator>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell>
            </asp:TableCell>
            <asp:TableCell>
                <asp:Button ID="Button_Commit" runat="server" CssClass="pt_button" Text="开支票" OnClick="Button_Commit_Click" />
            </asp:TableCell>
            <asp:TableCell>
                <asp:Label ID="Label_CommitMessage" runat="server" Text="证书文件与密码不符" ForeColor="Red"
                    Visible="False" CssClass="tipwrong"></asp:Label>
            </asp:TableCell>
        </asp:TableRow>
    </asp:Table>
</asp:Content>
